<%-- 
    Document   : 4_Login
    Created on : Oct 17, 2011, 4:50:50 PM
    Author     : Administrator
--%>

<%@page import="pojo.User"%>
<%@page import="pojo.Thanhpho"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
 <script type="text/javascript" src="js/test.js"></script>
<%
    String ten = "";
    User kh = null;
    if (session.getAttribute("DaDangNhap")!=null) {
        kh = (User)session.getAttribute("DaDangNhap");
        ten =kh.getTenDangNhap();
        
    }
%>
 <div class="div_BannerTopMC">
    <div class="div_MainTop">
        <div class="dLogo_NM"><a href="index.jsp" class="div_LogoTop1">
                <img height="116" width="240" alt="nhomMua.com" onload="fixPNG(this);" src="images/logo_NhomMua.png"/></a>
        </div>
        <div class="div_ListCity">
            <p class="styleText7 pTextTinh"><strong>Thành Phố</strong></p>

            <div class="dDDLNew">
                <div id="ddlCityNew_ddl" class="dTopCityNew">
                    <div class="div_bgListCity">
                        <i class="div_LeftDDLCity"></i>
                        <div class="div_BodyDDLCity"><h1 id="str_ddlCityNew" unselectable="on" class="styleText11 color6 strCity">Hà Nội</h1>
                            <i class="div_btDDLCity"></i>
                        </div><i class="div_RightDDLCity"></i>
                    </div>                    
                </div>      
                <select name="ddlCityNew" id="ddlCityNew" style="display:none;width:226px" autocomplete="off" class="ddlNew">

                    <option selected="selected" value="ha-noi">H&#224; Nội</option>

                    <option value="tp-ho-chi-minh">Hồ Ch&#237; Minh</option>

                </select>      
            </div>

        </div>
        <%if (session.getAttribute("DaDangNhap")==null) {%>
        <div class="RMainSignin" >
            <div class="div_RSigninNew">
                <form method="POST" action="xl_Login_2">
                    <div class="div_LSinginN"></div>
                    <div class="div_MainBSignin">
                        <div class="div_BSinginNew" id="divSignIn">
                            <div id="login_response"></div>
                            <div id="divForm">
                                <ul class="inner_SinginNew">
                                    <li>
                                        <p class="styleText7 pPopSI">Ký Danh</p>
                                        <div class="div_txtNew">
                                            <div class="txt_tlNew"></div>
                                            <div class="txt_ctNew"></div>
                                            <div class="txt_trNew"></div>
                                            <div class="txt_clNew">
                                                <div class="txt_crNew">
                                                    <div class="txt_inner_New">
                                                        <input autocomplete="off" id="emailLogin" name="emailLogin" type="text">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="txt_blNew"></div>
                                            <div class="txt_cbNew"></div>
                                            <div class="txt_brNew"></div>

                                        </div>
                                    </li>
                                    <li class="li_PassSinginNew">
                                        <p class="styleText7 pPopSI">Mật Khẩu</p>
                                        <div class="div_txtNew">
                                            <div class="txt_tlNew"></div>
                                            <div class="txt_ctNew"></div>
                                            <div class="txt_trNew"></div>
                                            <div class="txt_clNew">
                                                <div class="txt_crNew">
                                                    <div class="txt_inner_New">
                                                        <input id="pswLogin" value="" name="pswLogin" type="password">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="txt_blNew"></div>
                                            <div class="txt_cbNew"></div>
                                            <div class="txt_brNew"></div>

                                        </div>
                                    </li>
                                </ul>
                            </div>  
                        </div>
                        <div class="div_RSinginN"> </div>
                        <i class="iLineBSI"></i>
                        <div class="brbtnSigninNew">
                              <a id="btnSignIn" href="javascript:login()" class="btnOKSinginNew">OK</a>
                        </div>
                    </div>
                </form>
            </div>
            <div class="div_TextDKTopMC" id="divRemem">
                <div class="cbReTopSignin" id="div_cbTopSignin">
                    <i class="i_CbReTopSignIE"></i>
                </div>
                <span class="color9 styleText7">Nhớ</span>
                <span class="styleText8 spnLineQuenMK">|</span>
                <a href="javascript:void(0)" id="btnLostPass" class="color9 styleText7 aDKTopMC">Bạn quên mật khẩu?</a>
            </div>
        </div>
        <%} else {%>

        <div class="RMainSignin">
            <div class="div_RSigninNew">
                <div class="div_LSinginN"></div>
                <div class="div_MainBSignin">
                    <div class="div_BSinginNew" id="divSignIn">

                        <a href='xl_viewProfile?Action=view&ID=<%=kh.getId()%>' class='aImgLogin'><img src='<%=kh.getHinhDaiDien()%>' width='58px' height='58px'></a>
                        <p class='styleText7'>Xin Chào</p>
                        <p class='styleText15 pNameMem'><%=kh.getTenDangNhap()%></p>
                        <p class='styleText7'><a class='colorPF' href='xl_viewProfile?Action=view&ID=<%=kh.getId()%>'>Thông Tin Tài Khoản</a></p>
                        
                    </div>
                    <div class="div_RSinginN"> </div>
                    <i class="iLineBSI"></i>
                    <div class="brbtnSigninNew">
                     <a id="btnSignIn" href="xl_Dang_Xuat" class="btnOKSinginNew">Out</a>
                    </div>
                </div>
            </div>
        </div>
                           <%}%>
    </div>
</div>